vertex *add_stripfan(int nvert,int texpic,int lmpic)
Parameter | Type | Description |
---|---|---|
nvert | int | number of vertices to add |
texpic | int | texture picture for this strip/fan |
lmpic | int | light map for this strip/fan |
Return the pointer to the actual vertices added for the strip/fan.
This function adds a new strip or fan to the mesh. If nvert is
positive, it means a strip, if negative, means a fan.
Each strip/fan can have its own texture and light map. If strip has no texture or
no light map, use -1 for the texture or light map parameter.
You must fill the strip vertices (position, color, texture co-ordinate and
light map co-ordinate) using the returned pointer. It points to an array of
vertices of size abs(nvert).